package com.baomidou.test.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author WeiHui-Z
 * @since 2016-12-12
 */
public class User extends Model<User> {

	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	private Long id;
	/**
	 *
	 */
	private String name;
	/**
	 *
	 */
	private String password;
	/**
	 *
	 */
	private String salt;
	/**
	 *
	 */
	private String role;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder("User{");
		sb.append("id=").append(id);
		sb.append(", name='").append(name).append('\'');
		sb.append(", salt='").append(salt).append('\'');
		sb.append(", role='").append(role).append('\'');
		sb.append('}');
		return sb.toString();
	}
}
